package com.szrt.java.day20170103.abstractClassTest;

import org.junit.Test;

public class StudentTest {

	//多态 方法的调用一样，但运行的结果不一样
	
	@Test
	public void zhangsan(){
		Student zs = new Zhangsan();
		zs.setName("张三");
		zs.setAge(21);
		System.out.println(zs.toString());
		zs.zhiwen();
	}
	
	@Test
	public void lisi(){
		Student ls = new Lisi();
		ls.setName("李四");
		ls.setAge(23);
		System.out.println(ls.toString());
		ls.zhiwen();
	}
	
}
